package com.hxy.health.platform.service;

import com.github.pagehelper.PageInfo;
import com.hxy.health.platform.pojo.Cart;
import com.hxy.health.platform.pojo.Product;

import java.util.List;

public interface CartService {
    int updateCart(Product product, Integer quantity, String email);

    PageInfo<Cart> getByEmail(Integer pageNum, Integer pageSize, String email);

    int deleteCartById(Integer cartId);

    int updateTotalPrice(Integer productId, Integer quantity, Double productPrice);

    List<Cart> getCartByEmail(String email);

    void deleteByEmail(String email);
}
